// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 获取容量一致性数据 GET /health/soh/data */
export async function sohControllerGetData2(options?: { [key: string]: any }) {
  return request<API.SohData>(`${apiPrefix}/health/soh/data`, {
    method: 'GET',
    ...(options || {}),
  });
}

/** 查看月度评估报告 GET /health/soh/report */
export async function sohControllerGetData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.sohControllerGetDataParams,
  options?: { [key: string]: any },
) {
  return request<any>(`${apiPrefix}/health/soh/report`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 更新容量一致性数据 POST /health/soh/sync */
export async function sohControllerSyncSoh(body: API.SyncSohReq, options?: { [key: string]: any }) {
  return request<boolean>(`${apiPrefix}/health/soh/sync`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
